package com.xukehong.demo.entity;

import lombok.Data;

/**
 * @author xkh
 * 2020/8/3
 */
@Data
public class TreeNode {

    /**
     * 节点主键
     */
    private Integer id;
    /**
     * 0 左 1右
     */
    private Integer lr;
    /**
     * 子节点
     */
    private TreeNode[] children;

    public TreeNode(Integer id) {
        this.id = id;
    }

    public TreeNode(Integer id, Integer lr) {
        this.id = id;
        this.lr = lr;
    }
}
